{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('mobmall_manage/navigation/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card">
	<div class="card-body">
		<div class="dataTable-toolbar">
			<a href="{:url('mobmall_manage/navigation/add')}" class="btn btn-primary btn-sm dataTable-add">添加</a>
		</div>
		<form action="{:url('mobmall_manage/navigation/listorders')}" method="post" class="J_ajaxForm">
			<table class="table table-striped table-bordered table-hover dataTable-table">
				<thead>
					<tr>
						<th width="76">排序</th>
						<th width="76">ID</th>
						<th width="100">图片</th>
						<th width="120">名称</th>
						<th width="240">目标页面名称</th>
						<th width="80">状态</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td><input type="text" name="vieworders[{$vo['id']}]" value="{$vo['vieworder']}" class="form-control input-sm" /></td>
						<td>{$vo['id']}</td>
						<td><img src="{$vo['picurl']}" width="80" /></td>
						<td><a href="{$vo['link']}" target="_blank">{$vo['name']}</a></td>
						<td>
							<div class="daui-infoattr">
								<div class="daui-infoattr__hd">标识：</div><div class="daui-infoattr__bd">{$vo['page_flag']}</div>
							</div>
							<div class="daui-infoattr">
								<div class="daui-infoattr__hd">数据：</div><div class="daui-infoattr__bd">{$vo['page_data']}</div>
							</div>
							<div class="daui-infoattr">
								<div class="daui-infoattr__hd">额外：</div><div class="daui-infoattr__bd">{$vo['page_extra']}</div>
							</div>
							<div class="daui-infoattr">
								<div class="daui-infoattr__hd">名称：</div><div class="daui-infoattr__bd">{$vo['page_name']}</div>
							</div>
							<div class="daui-infoattr">
								<div class="daui-infoattr__hd">子名称：</div><div class="daui-infoattr__bd">{$vo['page_subname']}</div>
							</div>
						</td>
						<td>{$vo['state_show']|raw}</td>
						<td>
							<a href="{:url('mobmall_manage/navigation/add', ['id'=>$vo['id']])}" class="btn btn-primary btn-xs">编辑</a>
							<a href="{:url('mobmall_manage/navigation/doDelete', ['id'=>$vo['id']])}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="确认删除吗？">删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div class="dataTable-controll">
				<button type="submit" class="btn btn-success btn-sm dataTable-vieworder J_ajaxSubmit">提交排序</button>
			</div>
		</form>
		<div class="dataTable-pages">{$pageShow|raw}</div>
	</div>
</div>
{/block}